/*StoreInfoOutRecord  */
import request from "/@/utils/request";
import download from "/@/utils/download.ts";

const StoreInfoOutRecordApi = {

    getPageData(data: any) {
        return request({
            url: "/storeInfoOutRecord/pageData",
            method: "post",
            data,
        });
    },
    getDetail(data: any) {
        return request({
            url: "/storeInfoOutRecord/getDetail",
            method: "post",
            data,
        });
    },

    save: (data: any) => {
        return request({
            url: "/storeInfoOutRecord/save",
            method: "post",
            data,
        });
    },

    del: (data: any) => {
        return request({
            url: "/storeInfoOutRecord/del",
            method: "post",
            data,
        });
    },

    updateStatus: (data: any) => {
        return request({
            url: "/storeInfoOutRecord/updateStatus",
            method: "post",
            data,
        });
    },
    pageDataXls:(_searchParam: any,_xlsTitle: any) => {
        return request({
            url: "/storeInfoOutRecord/pageDataXls",
            method: "post",
            responseType: 'blob',
            headersType: 'application/json;charset=UTF-8',
            data: {
                _searchParam,_xlsTitle
            },
        }).then((res)=> {
            download(res)
        });
    },
};
export default StoreInfoOutRecordApi;
